adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / Message Class / CreateFromException Method / CreateFromException(MessageType,String,Exception,Object[]) Method

In This Topic
    CreateFromException(MessageType,String,Exception,Object[]) Method
    In This Topic
    Creates a message from an exception.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function CreateFromException( _
       ByVal severity As MessageType, _
       ByVal code As String, _
       ByVal ex As Exception, _
       ByVal ParamArray stringReplacements() As Object _
    ) As Message
    public static Message CreateFromException( 
       MessageType severity,
       string code,
       Exception ex,
       params object[] stringReplacements
    )

    Parameters

    severity
    code
    ex
    stringReplacements
    Remarks
    The code is used to retrieve the error message to use. The message is formatted to replace {0} with ex.Message. Any other placeholders are replaced with the values from the passed array. The DebuggingInformation property of the message is set to ex.ToString().
    See Also